﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Irvin_Engine.Camera
{
    public class Camera
    {
        public Vector2 Position { get; set; }
        private string m_ID = "";

        private Matrix transform;
        private Matrix rotation;
        private Matrix scale;

        public Camera()
        { }

        public Camera(string _ID)
        {
            transform = Matrix.Identity;
            Position = Vector2.Zero;
            rotation = Matrix.Identity;
            scale = Matrix.CreateScale(1.0f);
            Position = new Vector2(0, 0);
            m_ID = _ID;
        }

        public Camera(Vector2 _posCam, string _ID) : this(_ID)
        {
            Position = _posCam;
        }

        public string ID()
        {
            return m_ID;
        }

        public void MoveCamera()
        {
            Matrix.CreateTranslation(Position.X, Position.Y, 0.0f, out transform);
            transform *= scale;
        }
    }
}
